<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Type extends Model
{
    protected $table='day8Exam_type';

    public function getType(){
        return $this->select();
    }

    public function addTypeData($data){
        return $this->insert($data);
    }

    public function getTypeData(){
        return $this->paginate(3);
    }

    public function delAll($id){
        return $this->destroy($id);
    }
}
